package com.cskaoyan.mapper;

import com.cskaoyan.model.Collect;
import com.cskaoyan.model.CollectExample;
import com.cskaoyan.model.bo.BaseParamBO;
import com.cskaoyan.model.vo.CollectorVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CollectMapper {
    long countByExample(CollectExample example);

    int deleteByExample(CollectExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Collect record);

    int insertSelective(Collect record);

    List<Collect> selectByExample(CollectExample example);

    Collect selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Collect record, @Param("example") CollectExample example);

    int updateByExample(@Param("record") Collect record, @Param("example") CollectExample example);

    int updateByPrimaryKeySelective(Collect record);

    int updateByPrimaryKey(Collect record);

    List<CollectorVO> queryList(Integer userIds, BaseParamBO param);

    void addOrDelete(@Param("deleted") Integer deleted, @Param("valueId") Integer valueId);

    Integer selectAddOrDelete(Integer valueId);

    void insertCollector(Integer valueId ,Integer userIds);

    Integer selectCollector(Integer valueId);
}
